<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');

    $router->resource('article-cate','ArticleCateController');

    $router->resource('article','ArticleController');

    $router->resource('product','ProductController');

    $router->resource('category','CategoryController');

    $router->resource('tag','TagController');

    $router->resource('team','TeamController');

    $router->resource('seo','SeoController');

    $router->resource('banner','BannerController');

    $router->resource('message','MessageController');

    $router->resource('exception','ExceptionController');

    $router->resource('page','PageController');

    $router->resource('recruit','RecruitController');

    $router->resource('inquiry','InquiryController');

    $router->resource('topic','TopicController');

    $router->resource('liaison','LiaisonController');

    $router->resource('photo','PhotoController');

    $router->resource('map','MapController');

    $router->resource('video','VideoController');

    $router->resource('audio','AudioController');

    $router->resource('information','InformationController');

    $router->resource('font','FontController');

    $router->resource('question','QuestionController');

    /*$router->get('/site/base', 'SiteController@index');

    $router->get('/site/guide', 'SiteGuideController@index');

    $router->get('/site/line', 'SiteLineController@index');*/

    $router->get('site/{model}', 'SiteController@index');
    $router->post('/site', 'SiteController@store');

    $router->any('upload/files', 'FileController@handle');

    $router->any('upload/files/google_verify', 'FileController@googleVerify');

    $router->any('upload/files/html_zip', 'FileController@htmlZip');

    $router->get('access-logs','AccessLogController@index');

    $router->any('sitemap', 'SitemapController@store');

    $router->any('clear/redis', 'SitemapController@clearRedis');

    $router->any('upload/wang-editor/image', 'FileController@wangEditorImage');

});
